Limit Linux-only code with Q_OS_LINUX
authorPino Toscano <toscano.pino@tiscali.it>
Tue, 26 Jan 2021 17:17:11 +0000 (17:17 +0000)
committerDmitry Shachnev <mitya57@debian.org>
Tue, 26 Jan 2021 17:17:11 +0000 (17:17 +0000)
commit963bad4ee42c3a97d0e5036fb64438445840c7d9
tree35ab3086fd197b924115d8ebe1b8cd5d5cd31c64
parentcece603de441e4aacc29a90bca3a376dc0354575
Limit Linux-only code with Q_OS_LINUX

Forwarded: no
Last-Update: 2020-04-19

The QStorageInfo/QStorageIterator implementation used for Linux is used also
on Hurd, as it uses an interface provided by GNU libc.
QStorageIterator::device() tries to use PATH_MAX (unavailable on the Hurd)
to lookup a /dev/block/ path, which exists on Linux only; hence, perform that
check within a Q_OS_LINUX block.

Gbp-Pq: Name qstorageinfo_linux.diff
src/corelib/io/qstorageinfo_unix.cpp